@echo off

set batDir=%~dp0
set OutDir=%1
set BuildType=%2
echo prebuild start
echo %BuildType%
if /i "%BuildType%" equ "Release" goto a
goto end
:a
echo zip EDesignerRes start-----------------------------------
cd /d %batDir%..\..\EDesigner\Res
@del /f /s /q EDesignerRes.zip
%batDir%..\7z\7z.exe a -r EDesignerRes.zip ./EDesignerRes/* -x!EDesignerRes
echo zip EDesignerRes end-----------------------------------
:end

cd /d %batDir%



